package com.example;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangbin
 */
@SpringBootApplication
@RestController
@Slf4j
public class Application {
    @GetMapping("/")
    public String index() {
        log.info("这是info级别的日志");
        log.debug("这是debug级别的日志");
        log.error("这是error级别的日志");
        return "hello, world";
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
